﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="wap.index" %>

<%@ Register Src="~/footer.ascx" TagName="Foot" TagPrefix="uc2" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <title><%= SectionProxyData.GetSetValue(3) %></title>
    <link type="text/css" rel="stylesheet" href="css/style.css"/>
    <link type="text/css" rel="stylesheet" href="css/page.css" />
    <script src="javascript/jquery.js"></script>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=fMnzyhYs0D1cBEl5iGMQ0Dlg"></script>
</head>

<body>
    <input type="hidden" runat="server" id="hfcityname" />
    <input type="hidden" runat="server" id="lat" />
    <input type="hidden" runat="server" id="lng" />
    <input type="hidden" runat="server" id="hfstatus" />
    <input type="hidden" runat="server" id="hfordersubmit" value="1" />
    <input type="hidden" runat="server" id="hfislocate" value="0" />

    <input type="hidden" runat="server" id="hasloction" value="0" />

    <div class="page">


         <select class="cities" id="tbcityname" style="display:none;">
                
                <asp:Repeater ID="rptCtiy" runat="server">
                    <ItemTemplate>
                        <option data-name="<%#Eval("cname")%>" value="<%#Eval("cid")%>"><%# Eval("cname") %> </option>
                    </ItemTemplate>
                </asp:Repeater>

            </select>

        <div id="page_title">
            <h1>选择您的送餐地址</h1>
            <a href="Cityswitch.aspx" class="reg top_right" data-ajax="false">切换城市</a>
        </div>
        <div class="container">
            <div style="margin: 10px; font-size: 14px;">
                我们猜您在：<label id="lbautomyaddress" style="color: red;" onclick="useCurrLocation()">正在获取...</label>
            </div>
            <ul class="my_order_list">
                <li>
                    <div class="order-tit" style="border-bottom: none;">
                        <span class="time">
                            <input name="keyaddress" class="w_txt" runat="server" type="text" id="keyaddress" placeholder="输入学校、商务楼、地址" />
                        </span>
                    </div>
                </li>
            </ul>
            <div class="view_back_con">
                <input type="submit" value="搜索" class="view_back_btn" id="btsearch" onclick="setPlace();" data-ajax="false" />
            </div>
            <div class="gmap" id="map" style="display: none;">
                <div style="width: 100%; height: 300px; position: relative; background-color: rgb(229, 227, 223);" id="map_canvas">
                </div>
            </div>

            <div style="margin-top: 20px;">
                <div class="geo-search-results ng-scope ui_show ng-hide" id="addressbox">
                </div>
            </div>
        </div>

    </div>
    <script id="addressTemplate" type="text/x-jsrender">
        {{for #data}}
            <div class="geo-search-result ng-scope">
                <a class="gsr-detail" href="javascript:" onclick="gotoorder('{{:lat}}','{{:lng}}','{{:address}}')">
                    <p class="spot ng-binding">{{:title}}</p>
                    <p class="address ng-binding">{{:address}}</p>
                </a>
            </div>
        {{/for}}
        
    </script>
</body>
</html>

<script src="javascript/jCommon.js?v=2016100955"></script>
<script src="javascript/eventwrapper.min.js?v=2016100955"></script>
<script src="javascript/locationmap.js?v=2016100955"></script>
<script src="javascript/jsrender.js?v=2016100955"></script>
